package com.xiaoniu.lib_keleim;

public enum ConversationType {
    PRIVATE(1, "private"),
    GROUP(3, "group"),
    CHATROOM(4, "chatroom"),
    ULTRA_GROUP(10, "ULTRA_GROUP");

    private int value;
    private String name;

    private ConversationType(int value, String name) {
        this.value = value;
        this.name = name;
    }
    public int getValue() {
        return this.value;
    }

    public String getName() {
        return this.name;
    }

    public static ConversationType setValue(int code) {
        ConversationType[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            ConversationType c = var1[var3];
            if (code == c.getValue()) {
                return c;
            }
        }
        return PRIVATE;
    }
}
